package com.service;

import com.Exception.NormalException.FileExceptions.FileFormatException;
import com.Result.TwitterWithURLs;
import com.entity.Twitter;
import com.entity.TwitterPicture;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XTC
 * @since 2024-07-12
 */
public interface TwitterPictureService extends IService<TwitterPicture> {
    boolean savePictures(Integer twitterId, Integer userId, MultipartFile[] pictures) throws FileFormatException, IOException;

    List<TwitterWithURLs> setPictureURL(List<Twitter> twitterList);
}
